<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\models\GkyWeArticleAnswer */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="gky-we-article-answer-form">
<div class="panel panel-default">
        <div class="panel-body">
    <?php $form = ActiveForm::begin([
                'options' => ['class' => 'form-horizontal form-group'],
                'fieldConfig' => [
                    'template' => "{label}<div class=\"col-lg-8\">{input}</div>",
                    'labelOptions' => ['class' => 'col-lg-4', 'style' => 'margin-right:-30px'],
                ]
    ]); ?>

    <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
       <?= $form->field($model, 'id')->textInput() ?>
    </div>
         <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
       <?= $form->field($model, 'content')->textInput(['maxlength' => true]) ?>
    </div>
         <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
       <?= $form->field($model, 'fan_open_id')->textInput(['maxlength' => true]) ?>
    </div>
         <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
       <?= $form->field($model, 'fan_name')->textInput(['maxlength' => true]) ?>
    </div>
         <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
       <?= $form->field($model, 'answer_time')->textInput() ?>
    </div>
         <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
       <?= $form->field($model, 'articel_id')->textInput() ?>
    </div>
         <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
       <?= $form->field($model, 'praise_count')->textInput() ?>
    </div>
         <div class="col-lg-12 col-xs-12 col-sm-12 col-md-12">
        <div class="form-group">
            <?= Html::submitButton('保存', ['class' =>'btn btn-success col-lg-offset-5 col-md-offset-5']) ?>
            <?= Html::a('返回', ['index'], ['class' => 'btn btn-primary']) ?>
        </div>
    </div>

    <?php ActiveForm::end(); ?>
      </div>
    </div>

</div>
